import java.io.IOException;

public interface PaymentService {
    String isAvailable() throws IOException;
    void pay(double amount, PaymentCallback callback);
    void refunds(double amount, RefundCallback callback);
    String query(String orderId) throws IOException;
    String queryRefunds(String refundId) throws IOException;
}
